﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebsiteBanThucAn.Models;
using DAL;

namespace BLL
{
    public class QuangCaoBLL
    {
        public static List<QuangCaoModel> LayDSQuangCaoTatCa()
        {
            return QuangCaoDAL.LayDSQuangCaoTatCa();
        }

        public static QuangCaoModel LayThongTinQuangCaoTheoID(int id)
        {
            return QuangCaoDAL.LayThongTinQuangCaoTheoID(id);
        }

        public static bool ThemQuangCao(QuangCaoModel qcm)
        {
            return QuangCaoDAL.ThemQuangCao(qcm);
        }

        public static bool XoaQuangCao(int id)
        {
            return QuangCaoDAL.XoaQuangCao(id);
        }

        public static bool SuaQuangCao(QuangCaoModel qcm)
        {
            return QuangCaoDAL.SuaQuangCao(qcm);
        }
    }
}
